package cn.comon.app.scan.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import cn.comon.app.scan.dao.AsReportinfoDao;
import cn.comon.app.scan.entity.AsReportinfo;
import cn.comon.app.scan.mapper.AsReportinfoMapper;

/**
 * @author xujf
 */
@Repository
public class AsReportinfoDaoImpl extends BaseDaoImpl<AsReportinfo, AsReportinfoMapper> implements AsReportinfoDao
{
    public AsReportinfoDaoImpl()
    {
        setMapperClass(AsReportinfoMapper.class);
    }
    
    public List<AsReportinfo> getReportinfoMaxSize(int selectMaxSize){
        return this.getMapper().getReportinfoMaxSize(selectMaxSize);
    }
    public void updateReportinfo(AsReportinfo asReportinfo){
        this.getMapper().updateReportinfo(asReportinfo);
    }
    
    public void updateDownloadState2Undownload(){
        this.getMapper().updateDownloadState2Undownload();
    }
    public List<AsReportinfo> getDownloadApp(int size){
        return this.getMapper().getDownloadApp(size);
    }
    public void updateDownloadState2ing(int size){
        this.getMapper().updateDownloadState2ing(size);
    }
    
    
    public void updateDownloadAppinfo(AsReportinfo asReportinfo){
        this.getMapper().updateDownloadAppinfo(asReportinfo);
    }
}
